<template>
  <div class="dashboard-container">
    <div class="dashboard-text"><span class="dashboard-qian">欢迎回来:</span> {{ name }}</div>
    <xiangqing />
    <Dialog />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import xiangqing from './components/index.vue'
import Dialog from '@/components/Dialog/Dialog.vue'
export default {
  name: 'Dashboard',
  components: {
    xiangqing,
    Dialog
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
    span{
      font-weight: 700;
      color: brown;
    }
  }
  &-qian{
    font-size: 40px;
  }
}
</style>
